<template>
  <div>跳转中...</div>
</template>

<script>
import utils from '@/utils/utils'
export default {
  name: 'OutHert',
  data () {
    return {}
  },
  mounted () {
    let token = utils.getUrlKey('token')
    // if (token) {
    //   sessionStorage.setItem('tokenJAE', token)
    //   this.$router.replace('/dashBoard')
    // } else {
    //   this.$Message.error('token不能为空！')
    //   setTimeout(() => {
    //     this.$router.replace('/login')
    //   }, 3000)
    // }
    // 系统原因和非同源外链登录
    if (token) {
      sessionStorage.setItem('tokenJAE', token)
      this.$router.replace('/msa/ai-iframes')
    }
    if (sessionStorage.getItem('tokenJAE')) {
      this.$router.replace('/msa/ai-iframes')
    } else {
      this.$Message.error('token不能为空！')
      setTimeout(() => {
        this.$router.replace('/app/ai-login')
      }, 3000)
    }
  }
}
</script>

<style lang="stylus" scoped>

</style>
